import { ACGameObjects } from "./AcGameObject";

export class Wall extends ACGameObjects {
    // r和c是 行列
    constructor(r, c, gamemap) {
        super();
        this.r = r;
        this.c = c;
        this.color = "#B37226";
        this.gamemap = gamemap;
    }

    update() {
        this.render();
    }
    render() {
        const L = this.gamemap.L;
        const ctx = this.gamemap.ctx;
        ctx.fillStyle = this.color;

        ctx.fillRect(this.c * L, this.r * L, L, L);
    }
}